package com.zhang.springcloud.feign;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.zhang.springcloud.entities.CommonResult;
import com.zhang.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

@Component
public class ConsumerServiceFall implements ConsumerService {
    @Override
    public CommonResult<Payment> getFeign(Integer id) {
        return new CommonResult(444,"熔断啦降级啦",id);
    }
}
